<div class="has-header">
    <div>
        <div class="btn btn-default btn-sm text-back" style="display: inline-block;" ui-sref="app.login"><i
                class="glyphicon glyphicon-menu-left"></i>返回
        </div>
        <h4 class="pull-right" style="padding-top: 15px;">{{currentState.title}}</h4>
    </div>
    <div>
        <form class="form-horizontal" role="form" name="resetPwdForm">
            <!--<div class="form-group">-->
            <!--<label style="cursor: default" for="username" class="col-sm-2 control-label">用户名</label>-->
            <!--<div class="col-sm-10">-->
            <!--<input type="text" class="form-control" id="username" required ng-model="user.username">-->
            <!--</div>-->
            <!--</div>-->
            <div class="form-group">
                <label style="cursor: default" for="phoneNumber" class="col-sm-2 control-label">手机号</label>
                <div class="col-sm-10">
                    <input class="form-control" id="phoneNumber" required minlength="11" maxlength="11"
                           ng-pattern="/^[0-9]{11}$/" ng-model="_user.phoneNumber">
                </div>
            </div>
            <div class="form-group">
                <label style="cursor: default" for="verificationCode"
                       class="col-sm-2 col-xs-12 control-label">验证码</label>
                <div class="col-sm-6 col-xs-6">
                    <input class="form-control" id="verificationCode" minlength="4" maxlength="4"
                           ng-pattern="/^[0-9]{4}$/" placeholder="请输入手机验证码" required ng-model="_user.verificationCode">
                </div>
                <div class="col-sm-4 col-xs-6">
                    <button class="btn btn-info btn-block" ng-if="leftTime<0" ng-disabled="!_user.phoneNumber"
                            ng-click="countdown()">获取手机验证码
                    </button>
                    <a class="btn btn-info btn-block" ng-if="leftTime>=0">{{leftTime}}s 后重新获取</a>
                </div>
            </div>
            <div class="form-group">
                <label style="cursor: default" for="password" class="col-sm-2 control-label">密码</label>
                <div class="col-sm-10">
                    <input type="password" class="form-control" id="password" placeholder="请输入6-18个字符" minlength="6"
                           maxlength="18" ng-pattern="/^[a-zA-Z0-9_]{6,18}$/" required ng-model="_user.password">
                </div>
            </div>
            <div class="form-group">
                <label style="cursor: default" for="rePassword" class="col-sm-2 control-label">确认密码</label>
                <div class="col-sm-10">
                    <input type="password" class="form-control" id="rePassword" placeholder="请输入6-18个字符" minlength="6"
                           maxlength="18" ng-pattern="/^[a-zA-Z0-9_]{6,18}$/" required ng-model="_user.rePassword">
                </div>
            </div>

            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <div class="checkbox text-center">
                        <label style="cursor: default">
                            <input type="checkbox" required ng-model="_user.agree">我已阅读并接受 <a
                                href="javascript:void(0);">《使用协议》</a>
                        </label>
                    </div>
                </div>
            </div>
            <div class="form-group" style="width:100%;text-align: center">
                <button class="btn btn-primary" style="width:200px;margin:5px auto 0;"
                        ng-disabled="!resetPwdForm.$valid" ng-click="signUp(_user)">确定
                </button>
            </div>
        </form>
    </div>
</div>